using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class Msg_record_finalMap : EntityTypeConfiguration<Msg_record_final>
    {
        public Msg_record_finalMap()
        {
            // Primary Key
            this.HasKey(t => t.Msg_final_id);

            // Properties
            this.Property(t => t.success_num)
                .HasMaxLength(4000);

            // Table & Column Mappings
            this.ToTable("Msg_record_final");
            this.Property(t => t.Msg_final_id).HasColumnName("Msg_final_id");
            this.Property(t => t.rule_line_id).HasColumnName("rule_line_id");
            this.Property(t => t.Msg_type_Id).HasColumnName("Msg_type_Id");
            this.Property(t => t.Msg_Record_Id).HasColumnName("Msg_Record_Id");
            this.Property(t => t.success_num).HasColumnName("success_num");
            this.Property(t => t.send_time).HasColumnName("send_time");
            this.Property(t => t.DoneTime).HasColumnName("DoneTime");
        }
    }
}
